﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PrintDrawing.BaseClassDraw
{
    public class PrintInfo
    {
        double _height = 1219;
        public double Height
        {
            get { return _height; }
            set { _height = value; }
        }

        private string _orientation = "PORTRAINT";

        public string Orientation
        {
            get { return _orientation; }
            set { _orientation = value; }
        }

        double _width = 862;
        public double Width
        {
            get { return _width; }
            set { _width = value; }
        }

        TYPE_PRINT _typePrint = TYPE_PRINT.A4;
        public TYPE_PRINT TypePrint
        {
            get { return _typePrint; }
            set { _typePrint = value; }
        }

        string _titelPrint="New Page";
        public string TitelPrint
        {
            get { return _titelPrint; }
            set { _titelPrint = value; }
        }
        public string TypePrintToString()
        {
            switch (_typePrint)
            {
                case TYPE_PRINT.A0:
                    return "A0";
                case TYPE_PRINT.A1:
                    return "A1";
                case TYPE_PRINT.A2:
                    return "A2";
                case TYPE_PRINT.A3:
                    return "A3";
                case TYPE_PRINT.A4:
                    return "A4";
                case TYPE_PRINT.Custom:
                    return "Custom";
                default:
                    break;
            }
            return "";
          
        }
        public void setTypePint(string s)
        {
            switch (s)
            {
                case "A0":
                    _typePrint = TYPE_PRINT.A0;
                    break;
                case "A1":
                    _typePrint = TYPE_PRINT.A1;
                    break;
                case "A2":
                    _typePrint = TYPE_PRINT.A2;
                    break;
                case "A3":
                    _typePrint = TYPE_PRINT.A3;
                    break;
                case "A4":
                    _typePrint = TYPE_PRINT.A4;
                    break;
                case "Custom":
                    _typePrint = TYPE_PRINT.Custom;
                    break;
                default:
                    _typePrint = TYPE_PRINT.Custom;
                    break;
            }            
        }
    }

    public enum TYPE_PRINT
    {
        A0,A1,A2,A3,A4,Custom
    }
}
